package moe.cat.com.moelight.Utils;

import android.app.Application;
import android.content.Context;

/**
 * 需要在manifests声明application
 android:name=".Utils.MyApplication"
 *
 */
public class MyApplication extends Application {
    private static MyApplication app;
    public static MyApplication getInstance() {
        return app;
    }
    private static Context Tempcontent;
    /**
     * 获取全局上下文
     */
    public static Context getContext() {
        return Tempcontent;
    }


    @Override public void onCreate() {
        super.onCreate(); app = this;
    }



}
